def debug(String message) {
//    echo "debug: ${message}"
    printMessage("debug: ${message}", 'green')
}

def error(String message) {
    echo "error: ${message}"
}

def printMessage(value, color) {
    def colors = ['groovy': "\033[40;31m >>>>>>>>>>>${value}<<<<<<<<<<< \033[0m",
                  'blue'  : "\033[47;34m ${value} \033[0m",
                  'green' : "[1;32m>>>>>>>>>>${value}>>>>>>>>>>[m",
                  'green1': "\033[40;32m >>>>>>>>>>>${value}<<<<<<<<<<< \033[0m"]
    ansiColor('xterm') {
        println(colors[color])
    }
}